<?php
namespace Mouta\AmistateBundle\utils;

use Mouta\AmistateBundle\utils\Facebook;

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of sfFacebook
 *
 * @author carlos
 */
class SfFacebook {
  CONST APPID   = "216613548391859";
  //CONST API     = "6751923571e8315bada84cf3c3d31b55";
  CONST SECRET  = "831e4c04d98c68c82c0c09a92d7a1a38";
  CONST NEXT    = "http://local.amistate.comy/";
  CONST PERMISOS  = "publish_stream,user_about_me,user_birthday,user_location,user_photos,email,user_interests";

  public static function getFbConnecion(){
	  return new Facebook(array(
          'appId'  => self::APPID,
          'secret' => self::SECRET,
          'cookie' => true,
        ));
  }

  public static function getUrlBase(){
	  return sfContext::getInstance()->getRequest()->getHost();
  }
}
?>
